<style scoped>
.expand-row {
  margin-bottom: 16px;
}
</style>
<template>
  <div>
    <!-- 文字信息 -->
    <!-- <Row class="expand-row">
      <Col span="8">
        <span class="expand-key">id: </span>
        <span class="expand-value">{{ row.recordId }}</span>
      </Col>
      <Col span="8">
        <span class="expand-key">创建时间: </span>
        <span class="expand-value">{{ row.lastupTxStamp }}</span>
      </Col>
    </Row> -->
    <!-- 表单 -->
    <!-- <Form :model="formRight" label-position="left" :label-width="60" inline>
      <FormItem label="姓名">
        <Input v-model="formRight.input1"></Input>
      </FormItem>
      <FormItem label="年龄">
        <Input v-model="formRight.input2"></Input>
      </FormItem>
      <FormItem label="地址">
        <Input v-model="formRight.input3"></Input>
      </FormItem>
      <Button type="dashed">添加子设备</Button>
    </Form> -->
    <!-- 子表格 -->
    <Table :columns="columns1" :data="data1"></Table>
  </div>
</template>
<script>
export default {
  name: "expand",
  props: {
    row: Object
  },
  data() {
    return {
      formRight: {
        input1: "",
        input2: "",
        input3: ""
      },
      columns1: [
        // {
        //   type: 'selection',
        //   width: 50,
        //   align: 'center'
        // },
        {
          title: "Name",
          key: "name"
        },
        {
          title: "Age",
          key: "age"
        },
        {
          title: "Address",
          key: "address"
        }
      ],
      data1: [
        {
          name: "John Brown",
          age: 18,
          address: "New York No. 1 Lake Park",
          date: "2016-10-03"
        },
        {
          name: "Jim Green",
          age: 24,
          address: "London No. 1 Lake Park",
          date: "2016-10-01"
        },
        {
          name: "Joe Black",
          age: 30,
          address: "Sydney No. 1 Lake Park",
          date: "2016-10-02"
        },
        {
          name: "Jon Snow",
          age: 26,
          address: "Ottawa No. 2 Lake Park",
          date: "2016-10-04"
        }
      ]
    };
  },
  mounted() {}
};
</script>
